package com.gooagoo.supercrm.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.AbsoluteSizeSpan;
import android.text.style.ForegroundColorSpan;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.gooagoo.supercrm.R;

import butterknife.ButterKnife;


/**
 * Created by niudong on 2017/1/18.
 */

public abstract class CustomDialog extends Dialog {
    private Context mContext;
    private int resId;


    public CustomDialog(Context context,int resId) {
        super(context, R.style.CustomDialog);
        this.resId = resId;
        this.mContext = context;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(resId);
        //按空白处不能取消动画
        setCanceledOnTouchOutside(false);
        setCancelable(false);
        //初始化界面控件
        initView();
    }

    public  abstract void initView();




}
